package com.gs.userservice.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @ProjectName: springcloudapollo20190719
 * @Package: com.gs.userservice.config
 * @Description: java类作用描述
 * @Author: guoshuai
 * @CreateDate: 2019/7/22 15:24
 * @UpdateUser: guoshuai
 * @UpdateDate: 2019/7/22 15:24
 * @UpdateRemark: The modified content
 * @Version: 1.0
 **/
@Configuration
@ConfigurationProperties(prefix = "redis.cache")
public class SampleRedisConfig {

    private int expireSeconds;
    private int commandTimeout;

    public void setExpireSeconds(int expireSeconds) {
        this.expireSeconds = expireSeconds;
    }

    public void setCommandTimeout(int commandTimeout) {
        this.commandTimeout = commandTimeout;
    }

    public int getExpireSeconds() {
        return expireSeconds;
    }

    public int getCommandTimeout() {
        return commandTimeout;
    }

    @Override
    public String toString() {
        return "SampleRedisConfig{" +
                "expireSeconds=" + expireSeconds +
                ", commandTimeout=" + commandTimeout +
                '}';
    }
}
